<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/taglib.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>职位管理</title>
  <link href="${pageContext.request.contextPath }/css/style.css" rel="stylesheet" type="text/css">
  <script type="text/javascript" src="${pageContext.request.contextPath }/js/jquery-1.7.2.min.js"></script>
  <script type="text/javascript" src="${pageContext.request.contextPath }/js/main.js"></script>
</head>

<body>
  <div id="main">
  <div id="title">
  <table>
    <tr>
      <td class="td01">&nbsp;</td>
      <td class="td01"><img src="${pageContext.request.contextPath }/images/main_28.gif"></td>
      <td class="td02">职位管理</td>
    </tr>
  </table>
  </div>
  
  <form id="queryForm" action="${pageContext.request.contextPath}/security/job!findPage.action" method="post">
  <div id="query">
    <table class="table01">
      <tr>
        <td class="td_02" colspan="4" ><SPAN class=td_title>职位查询</SPAN></td>
	  </tr>
      <tr>
		<td width="10%" class="td_02">职位名称</td>
		<td class="td_02" >
		  <s:textfield name="jobName" cssClass="input"></s:textfield>
		</td>
		</tr>
    </table>
  </div>
  </form>
  
  <form action="${pageContext.request.contextPath }/security/job!delete.action">
  <div id="execute">
    <input type="button" class="buttonface02" onclick="location.href='${pageContext.request.contextPath }/security/job!toAdd.action'" value="添加职位">
    <input type="submit" class="buttonface02" value="删除职位">
    <input type="button" id="queryButton" class="buttonface02" value="查询职位">
  </div>
  
  <div id="page">	            
    <%@include file="/page.jsp"%>
  </div>   
    
  <div id="data">    
	<table class="table01">
	  <tr>
      	<td class="td_top" width="1%"><input type="checkbox" id="chk" value="checkbox0"></td>
        <td class="td_top">职位编号</td>
        <td class="td_top">职位名称</td>
        <td width="8%" class="td_top">操作</td>
	  </tr>
	  <c:forEach items="${page.result}" var="o">
		<tr>
          <td class="td_02"><input type="checkbox" name="ids" value="${o.id }"></td>
          <td class="td_02">${o.id}</td>
          <td class="td_02">${o.jobName }</td>
          <td class="td_02"><a href="${pageContext.request.contextPath}/security/job!toUpdate.action?id=${o.id}">修改</a></td>
		</tr>
	  </c:forEach>
	  </table>
	</div>          
  </form>
  </div>          
</body>
</html>
